home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 3
/
DOS064.dsk
/
TREASURY BILL VALUATION.bas
< prev
Wrap
BASIC Source File
|
2012-02-16
|
881b
|
31 lines
5 TEXT : HOME
10 PRINT "*********************************"
20 PRINT "*** TREASURY BILL VALUATION ***"
30 PRINT "*********************************"
40 PRINT
50 PRINT "**********************************"
60 PRINT "*THIS PROGRAM CALCULATES THE PRICE*"
70 PRINT "*PER $100 AND DOLLAR VALUE OF U.S.*"
80 PRINT "* TREASURY BILLS *"
90 PRINT "***********************************"
100 PRINT
210 INPUT "FACE AMOUNT ($)";F
211 PRINT
220 INPUT "DAYS TO MATURITY";D
221 PRINT
230 INPUT "BID QUOTE (%)";B
231 PRINT
240 INPUT "ASK QUOTE (%)";A
241 PRINT 1
242 PRINT
250 LET H = 100 -(B +A)/2 *(D/360)
260 LET T = F *H/100
270 PRINT "FACE AMOUNT= ";F
280 PRINT "DAYS TO MATURITY= ";B
290 PRINT "BID QUOTE (%)= ";B
300 PRINT "ASK QUOTE (%)= ";A
310 PRINT
320 PRINT "PRICE PER $100= ";H
330 PRINT "TOTAL VALUE= ";T
331 PRINT
340 GOTO 10